package one.stand.mapper;

import org.apache.ibatis.annotations.Param;

public interface GoodsSelectMapperExt extends GoodsMapper {

    void insertTypes(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);

    void insertTypesGoods(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);

    void updateTypes(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);

    void deleteTypes(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);


    void insertGoods(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);

    void updateGoodsAgree(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);

    void updateGoods(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);

    void deleteByCopy(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);

    void updateGoodsRightReduction(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);


    void insertSpecs(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);

    void updateSpecs(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);

    void deleteSpecCopy(@Param("companyId") Integer companyId);


    void insertPhoto(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);

    void updatePhoto(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId, @Param("goodsId") Integer goodsId);


    void insertBanner(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);

    void updateBanner(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);

    void deleteAllBanner(@Param("companyId") Integer companyId, @Param("selectCompanyId") Integer selectCompanyId);

    void deleteBanner(@Param("bannerId") Integer bannerId);

}